<script setup lang="ts">
import { ref } from 'vue'
import avue from '@/components/a.vue'
import bvue from '@/components/b.vue'

const varFromA = ref({})
const getFromA = (data: any) => {
  varFromA.value = data
}
</script>

<template>
  <div>
    <avue @to-f="getFromA" :toa="varFromA" />
    ----------------------
    <bvue :tob="varFromA" />

  </div>
</template>
